package cn.water.luban.demo.stock.main.controller;

import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Api(tags = "说你好")
public class HelloController {
    @Value("${server.port}")
    private String port;
    @GetMapping("/hello")
    public String sayHi(String name){
        String result="hello ["+name+"]!"+"I am from ["+port+"]";
        return result;
    }
}
